package org.mq.mymq.nameserver.utils;

import org.mq.mymq.nameserver.common.CommonCache;

/**
 * @ClassName NameserverUtil
 * @Description
 * @Author jiarong_ye
 * @Date 2025/6/20 11:53
 * @Version 1.0
 */
public class NameserverUtil {
    public static boolean isVerify(String user, String password) {
        String rightUser = CommonCache.getNameserverProperties().getNameserverUser();
        String rightPasswrod = CommonCache.getNameserverProperties().getNameserverPwd();
        if (!rightUser.equals(user) || !rightPasswrod.equals(password)) {
            return false;
        }
        return true;
    }
}
